package org.dht.com.msg;

/**
 * The <code>MalformedMessageException</code> class handles an exception when a
 * message is not built correctly.
 */
public class MalformedMessageException extends Exception {

	/**
	 * Serial
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * Builds a exception by message
	 * 
	 * @param message
	 *            Message
	 */
	public MalformedMessageException(String message) {
		super(message);
	}

	/**
	 * Builds a exception by message and throwable
	 * 
	 * @param message
	 *            Message
	 * @param throwable
	 *            Exception or error
	 */
	public MalformedMessageException(String message, Throwable throwable) {
		super(message, throwable);
	}
}
